/**
 * Created by yuyongzhen  <1640599564@qq.com>>.
 */

module.exports = function(mod,name){
	mod.controller(name,['$scope','fetchcollect',function($scope,fetchcollect){
		fetchcollect.getCollect().then(function(ret){
			if(ret.status == 200){
				if(ret.data.status){
					$scope.categories = ret.data.data.categories;
					$scope.collections = ret.data.data.collections;
				}
			}	
		});		
	}]);
}

